package com.edu.order.service;

import com.edu.order.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dingchengyu
 * @since 2022-05-13
 */
public interface ITOrderService extends IService<TOrder> {

    /**
     * 创建订单
     *
     * @param userId        用户Id
     * @param commodityCode 商品编码
     * @param count         数量
     * @return
     */
    Long createOrder(Long userId, String commodityCode, int count);

    /**
     *
     * @param userId
     * @param commodityCode
     * @param count
     * @return
     */
    Long createOrderError(Long userId, String commodityCode, int count);


}
